- name: prepare mount point
  file: state=directory path=/var/lib/dist-git

- name: mount up disk of copr repo
  mount: name=/var/lib/dist-git src='LABEL=copr-dist-git' fstype=ext4 state=mounted

- name: prepare mount point
  file: state=directory path=/var/lib/copr-dist-git

- name: create symlink for per-task-logs
  file:
    state: link
    src: /var/lib/dist-git/per-task-logs
    path: /var/lib/copr-dist-git/per-task-logs

- name: Write swap entry in fstab
  mount:
    path: none
    src: UUID=0ffcf9f2-8a79-4973-bee4-2d16c410fd77
    fstype: swap
    opts: sw
    passno: 0
    dump: 0
    state: present
  when: not devel
  tags:
    - swap.fstab
    - swap

- name: mount tmp on tmpfs
  mount: name=/tmp src=tmpfs fstype=tmpfs state=mounted opts=defaults,size=39G,nr_inodes=2g
